#ifndef GOBANGBOARD_H
#define GOBANGBOARD_H

#include <vector>
#include <memory>
#include <QWidget>
#include <QLayout>

#include "boardentry.h"
#include "gobang.h"

class GobangBoard : public QWidget
{
    Q_OBJECT
public:
    explicit GobangBoard(QWidget *parent = nullptr);
    ~GobangBoard() {}

signals:
    void game_over(int winner, std::string message);

public slots:
    //void reset();

private:
    void init_board();

private:
    std::unique_ptr<QGridLayout> layout;
    std::unique_ptr<Gobang> gobang;
};

#endif // GOBANGBOARD_H
